package com.citicpub_cloud.restfull.common.http.response;

import com.citicpub_cloud.restfull.utils.JsonUtil;

/**
 * Created by dlm on 2016/4/13.
 */
public class CommonResponse {

   
	private ResponseHeader header = new ResponseHeader();
    
    /**
     * 返回数据信息
     */
    private Object body;

	public ResponseHeader getHeader() {
		return header;
	}

	public void setHeader(ResponseHeader header) {
		this.header = header;
	}

	public Object getBody() {
		return body;
	}

	public void setBody(Object body) {
		this.body = body;
	}

	@Override
	public String toString() {
		return JsonUtil.objectToJson(this);
	}

	public String toJson(){
		return JsonUtil.objectDateToLongJson(this);
	}
}
